package service

import (
	"common/database/config"
)

func UserSendMessage(tel string, code string) string {
	key := "login_user" + tel
	get := config.Rdb.Get(config.Ctx, key)
	if get.Val() == "" {
		return "暂未获取短信验证码"
	}
	if get.Val() != code {

		return "短信验证码输入错误"
	}
	return ""
}
